﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrador.Master" AutoEventWireup="true" CodeBehind="UI_Exonerated.aspx.cs" Inherits="Espam.Idiomas.Decimo.Tesis.Web.UI_Exonerated"  EnableEventValidation="false" ViewStateEncryptionMode="Never"%>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="Stylesheet" type="text/css" />
    <style type="text/css">
        div.ui-datepicker {
            font-size: 80%;
        }
    </style>
    <style type="text/css">
        .fontDt {
            font-size: 9px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenido" runat="server">
     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js" type="text/javascript"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" type="text/javascript"></script>
          <script type="text/javascript">
              window.onload = function () {
                  var seconds = 3;
                  setTimeout(function () {
                      document.getElementById("<%=lblvalida.ClientID %>").style.display = "none";
              }, seconds * 1000);
              };

              $(function () {
                  $("[id$=txtFechaInicio]").datepicker({
                      defaultDate: "+1w",
                      changeMonth: true,
                      showAnim: 'shake',
                      numberOfMonths: 1,
                      dateFormat: 'yy/mm/dd',
                      onClose: function (selectedDate) {
                          $("[id$=txtFechaFin]").datepicker("option", "minDate", selectedDate);
                      }
                  });
                  $("[id$=txtFechaFin]").datepicker({
                      defaultDate: "+1w",
                      showAnim: 'shake',
                      changeMonth: true,
                      numberOfMonths: 1,
                      dateFormat: 'yy/mm/dd',
                      onClose: function (selectedDate) {
                          $("[id$=txtFechaInicio]").datepicker("option", "maxDate", selectedDate);
                      }
                  });
              });
</script>

     <script type="text/javascript">
      function openModal() {
             $('#flexModal').modal('show');
         }
</script>

       <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </cc1:ToolkitScriptManager>
     <div id="page-wrapper">
            <div class="page-content">
                <!-- begin PAGE TITLE AREA -->
                <!-- Use this section for each page's title and breadcrumb layout. In this example a date range picker is included within the breadcrumb. -->
                <div class="row">
                    <div class="col-lg-12">
                        <div class="page-title">
                            <h1>Exonerados
                                <small>Reporte Exonerados</small>
                            </h1>
                            <ol class="breadcrumb">
                                <li class="active">
                                 <asp:Label ID="lblvalida" runat="server" Text="" Visible="False"></asp:Label></li>
                                <li class="pull-right">
                                    <div id="reportrange" class="btn btn-green btn-square date-picker">
                                        <i class="fa fa-calendar"></i>
                                        <span class="date-range"></span> <i class="fa fa-caret-down"></i>
                                    </div>
                                </li>
                            </ol>
                        </div>
                    </div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
                <!-- end PAGE TITLE AREA -->

            </div>

          <!-- end PAGE TITLE ROW -->

                <div class="row">
               <!-- Validation Examples -->
                    <div class="col-lg-12">
                        <div class="portlet portlet-default">
                            <div class="portlet-heading">
                                <div class="portlet-title">
                                    <h4>Datos Reporte Exonerados</h4>
                                </div>
                                <div class="portlet-widgets">
                                    <a data-toggle="collapse" data-parent="#accordion" href="#validationExamples"><i class="fa fa-chevron-down"></i></a>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div id="validationExamples" class="panel-collapse collapse in">
                                <div class="portlet-body">
                                   
                                <div class="portlet-body">
                                <div class="table-responsive">
                                     <table class="table">
                                        <thead>
                                            <tr>
                                                <td>Fecha Inicio:</td>
                                                <td><asp:TextBox ID="txtFechaInicio" placeholder="aaaa/mm/dd" autocomplete="off" runat="server" CssClass="form-control"  ValidationGroup="modulo"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Campo Obligarotio" ControlToValidate="txtFechaInicio" ForeColor="Red"></asp:RequiredFieldValidator>
                                                </td>
                                                <td>Fecha Fin:</td>
                                                <td><asp:TextBox ID="txtFechaFin"  placeholder="aaaa/mm/dd" autocomplete="off" runat="server" CssClass="form-control"  ValidationGroup="modulo"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Campo Obligarotio" ControlToValidate="txtFechaFin" ForeColor="Red"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                        </thead>
                                        <tbody>
                                          <tr>
                                              <td></td>
                                              <td></td>
                                              <td><asp:Button ID="btnCancelar" runat="server" Text="Cancelar" Visible="true" CssClass="btn btn-block" OnClick="btnCancelar_Click"   /></td>
                                              <td>
                                                    <asp:Button ID="btnGenerarReporte" runat="server" Text="Generar Reporte" CssClass="btn btn-dark-blue" OnClick="btnGenerarReporte_Click" />
                                              </td>
                                          </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                                   
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- /.col-lg-12 -->
                    <!-- End Validation Examples -->
             </div>




                <!-- /.row -->

         <div class="row">
               <!-- Validation Examples -->
                    <div class="col-lg-12">
                        <div class="portlet portlet-default">
                            <div class="portlet-heading">
                                <div class="portlet-title">
                                    <h4>Lista Exonerados</h4>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div id="Div1" class="panel-collapse collapse in">
                                <div class="portlet-body" >
                                   
                                <div class="portlet-body">
                                     
                                     <div class="table-responsive">
                                    <%-- <table class="table">--%>
                               <%-- </div>--%>
                                  <!-- gridview modulos -->

                                  <!-- End gridview modulos -->
                                    <%--</form>--%>
                                  <%-- <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                        <ContentTemplate>
                                    <asp:GridView ID="gvDocentes" Width="100%" runat="server" 
                                        AutoGenerateColumns="False" CellPadding="4" GridLines="Horizontal"  
                                         BackColor="White" BorderColor="#336666" 
                                        BorderStyle="Double" BorderWidth="3px" >
                                        <Columns>
                                            <asp:BoundField DataField="nombresYApellidos" HeaderText="ALUMNO" >
                                            </asp:BoundField>
                                            <asp:BoundField DataField="nivel" HeaderText="NIVEL" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="fecha" HeaderText="FECHA" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="promedio" HeaderText="PROMEDIO" DataFormatString="{0:0.00}" />
                                        </Columns>
                                        <FooterStyle BackColor="White" ForeColor="#333333" />
                                        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                                        <RowStyle BackColor="White" ForeColor="#333333" />
                                        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                                        <SortedAscendingCellStyle BackColor="#F7F7F7" />
                                        <SortedAscendingHeaderStyle BackColor="#487575" />
                                        <SortedDescendingCellStyle BackColor="#E5E5E5" />
                                        <SortedDescendingHeaderStyle BackColor="#275353" />
                                    </asp:GridView>
                                        </ContentTemplate>
                                </asp:UpdatePanel>--%>
                                        <%-- </table>--%>

                                         <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                             <ContentTemplate>
                                        <asp:GridView ID="gvDocentes" Width="100%" runat="server" 
                                         AutoGenerateColumns="False" CellPadding="4" GridLines="Horizontal" 
                                         DataKeyNames = "idExonerado" 
                                         OnLoad="gvDocentes_Load"
                                         OnPreRender="gvDocentes_PreRender"  OnRowCommand="gvDocentes_RowCommand" >
                                        <Columns>
                                            <asp:BoundField DataField="nombresYApellidos" HeaderText="ALUMNO" >
                                            </asp:BoundField>
                                            <asp:BoundField DataField="nivel" HeaderText="NIVEL" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="fecha" HeaderText="FECHA" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="promedio" HeaderText="PROMEDIO" DataFormatString="{0:0.00}" />
                                            <asp:ButtonField Text="Eliminar" CommandName="deleteRecord" ControlStyle-CssClass="btn btn-info" ButtonType="Button" HeaderText="Eliminar Registro">        
                                            <ControlStyle CssClass="btn btn-link" Font-Size="8pt"></ControlStyle>
                                            <ItemStyle Font-Size="6pt" />
                                            </asp:ButtonField>
                                        </Columns>
                                    </asp:GridView>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                            </div>
                                    </div>
                             <%-- <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                <ProgressTemplate>
                                    <div id="Background" class="Background"></div>
                                        <div id="Progress" class="progress">
                                            <h6> <p style="text-align:center"> <b>Procesando Datos, Espere por favor... <br /></b> </p> </h6>
                                        </div>
                                </ProgressTemplate>
                             </asp:UpdateProgress>--%>
                                         <%--</form>--%>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- /.col-lg-12 -->
                    <!-- End Validation Examples -->
             </div>
                <!-- /.row -->


        <div class="modal modal-flex fade" id="flexModal" tabindex="-1" role="dialog" aria-labelledby="flexModalLabel" aria-hidden="true" >
        <div class="modal-dialog" >
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="flexModalLabel">CONFIRMACIÓN DE ELIMINACIÓN </h4>
                </div>
               
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                 <ContentTemplate>
                      <div class="modal-body" >
                            <asp:Label ID="lblMensajeDecision" Text="ESTA SEGURO DE ELIMINAR EXONERADO???" runat="server"></asp:Label>
                            <asp:HiddenField ID="HfDeleteID" runat="server"/>
                        </div>
                     <%-- <div class="modal-footer">
                                <button  class="btn btn-blue" data-dismiss="modal"aria-hidden="true">Cancelar</button>
                                 <asp:Button ID="btnDelete" runat="server" Text="Confirmar" CssClass="btn btn-green" OnClick="btnDelete_Click"/>
                         
                        </div>--%>

                           <div class="modal-footer">                          
                                <button  class="btn btn-green"data-dismiss="modal"aria-hidden="true">Cancelar</button>
                                <asp:Button ID="btnDelete" runat="server" Text="Confirmar" CssClass="btn btn-blue" OnClick="btnDelete_Click" />
                           </div>

                 </ContentTemplate>
                 <Triggers>
                     <asp:AsyncPostBackTrigger ControlID="btnDelete" />
                 </Triggers>
             </asp:UpdatePanel>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>


     </div>
</asp:Content>
